<?php

/**
 * @author Martin Pernica
 * @copyright 2008
 */
if(!empty($_GET['id'])){
$query = Registry::get('db')->query("DELETE FROM {prefix}comments WHERE id = '".intval($_GET['id'])."'");

		$log->write(8, 'com_comment', 'NOW()', 'User deleted comment #'.intval($_GET['id']), $_SESSION['id']);
		
        messageBox( Lang::getBack('com_comment', 'comment_deleted') );
        
		echo '<meta http-equiv="refresh" content="2;url=index.php?p=components&name=comment">';
}
?>